﻿using System.ComponentModel.DataAnnotations;

namespace JNPF.Basics.Models.System.Dtos.ModuleColumn
{
    public class ModuleColumnUpInput
    {
        /// <summary>
        /// id
        /// </summary>
        [Required(ErrorMessage = "id不能为空")]
        public string id { get; set; }
        /// <summary>
        /// 绑定表格描述
        /// </summary>
        [Required(ErrorMessage = "绑定表格描述不能为空")]
        public string bindTableName { get; set; }
        /// <summary>
        /// 字段名称
        /// </summary>
        [Required(ErrorMessage = "字段名称不能为空")]
        public string enCode { get; set; }
        /// <summary>
        /// 字段注解
        /// </summary>
        [Required(ErrorMessage = "字段注解不能为空")]
        public string fullName { get; set; }
        /// <summary>
        /// 状态(1-可用，0-不可用)
        /// </summary>
        [Required(ErrorMessage = "状态不能为空")]
        public int enabledMark { get; set; }
        /// <summary>
        /// 字段描述
        /// </summary>
        [Required(ErrorMessage = "字段描述不能为空")]
        public string description { get; set; }
        /// <summary>
        /// 绑定表格
        /// </summary>
        [Required(ErrorMessage = "绑定表格不能为空")]
        public string bindTable { get; set; }
        /// <summary>
        /// 菜单id
        /// </summary>
        [Required(ErrorMessage = "菜单id不能为空")]
        public string moduleId { get; set; }
    }
}
